package com.wealth.page.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.page.entity.Ad;
import com.wealth.page.repository.AdDao;
import com.wealth.page.service.IADService;

import iaas.service.impl.BaseServiceImpl;

@Component
public class ADServiceImpl extends BaseServiceImpl<Ad> implements IADService{
	
	@Autowired
	private AdDao adDao;

	/** ------------------------------- 扩展  ------------------------------*/
	
	/**
	 * 企业+状态
	 */
	@Override
	public List<Ad> getAdByCorpIdAndTypeAndStatus(Long corpid, Integer type,
			Integer status) throws Exception {
		return adDao.findByCorpIdAndTypeAndStatusOrderBySeqAsc(corpid, type, status);
	}


}
